]> dgit.raspbian.org Git - gnome-shell.git/commit
tray/na-xembed: Destroy socket window when ending the embedding
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 1 May 2024 03:56:48 +0000 (05:56 +0200)
committerSimon McVittie <smcv@debian.org>
Thu, 12 Jun 2025 20:08:12 +0000 (21:08 +0100)
commit39136b3e08feed673cb2c8c5cc9936c16dfdf370
tree85b52979826ed2be464daf3ba4a005d71edaea4a
parent5a34c2885f95fe2c2fdfdc3ebcdf91e7b4d0466e
tray/na-xembed: Destroy socket window when ending the embedding

Currently when embedding a tray icon is ended we are leaving the X11
socket window around as we don't really destroy it, while we're just
listening for its child destruction.

So, when embedding is ending we need to make sure that:
 - If the plug window is still alive, move it back to its old parent
   (normally that's the root window, but we query for it, to be sure)
 - If the plug window has been already destroyed or reparented (by us or
   by something else), we've to just destroy the socket window

Origin: https://gitlab.gnome.org/3v1n0/gnome-shell/-/commits/tray-offscreen-xwindows
Bug: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7614
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2012388

Gbp-Pq: Topic tray-icons
Gbp-Pq: Name tray-na-xembed-Destroy-socket-window-when-ending-the-embe.patch
src/tray/na-xembed.c